﻿using One.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OneSpider.API
{
    public interface IApiService
    {
        /// <summary>
        /// 图文
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<Content>> GetContentsAsync(int id);

        /// <summary>
        /// 阅读
        /// </summary>
        /// <returns></returns>
        Task<List<Article>> GetArticlesAsync(int id);
        
        /// <summary>
        /// 问答
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<Answer>> GetAnswersAsync();

        /// <summary>
        /// 连载
        /// </summary>
        /// <returns></returns>
        Task<IEnumerable<Serial>> GetSerialsAsync();

        /// <summary>
        /// 音乐
        /// </summary>
        /// <returns></returns>
        Task<List<Music>> GetMusicsAsync(int id);

        /// <summary>
        /// 电影
        /// </summary>
        /// <returns></returns>
        Task<List<Movie>> GetMoviesAsync(int id);
    }
}
